managerTenis.service.usuario = (function () {

    function guardar(usuario, onSuccessCallback, onErrorCallback) {
        managerTenis.service.postJSON(managerTenis.service.serviceBaseURI + "/usuario", usuario, onSuccessCallback, onErrorCallback);
    }
    
    function buscar(id, onSuccessCallback, onErrorCallback){
        managerTenis.service.getJSON(managerTenis.service.serviceBaseURI + "/usuario/"+id,onSuccessCallback, onErrorCallback);
    }

    return {
        guardar : guardar,
        buscar : buscar
    };
})();